﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace ETC.DLEDLightingSystemPlus.Models
{
    public class TetraTestLogModel : Bandit.UI.MVVM.NotifyObject
    {
       
        private string _FileName;
        /// <summary>
        /// FileName
        /// </summary>
        public string FileName
        {
            get { return _FileName; }
            set
            {
                _FileName = value;
                OnPropertyChanged("FileName");
            }
        }

        private bool _IsDownLoad;

        public bool IsDownLoad
        {
            get { return _IsDownLoad; }
            set
            {
                _IsDownLoad = value;
                OnPropertyChanged(nameof(IsDownLoad));
            }
        }

        private bool _IsFile;

        public bool IsFile
        {
            get { return _IsFile; }
            set
            {
                _IsFile = value;
                OnPropertyChanged(nameof(IsFile));
            }
        }

        private string _Name;
        /// <summary>
        /// Name
        /// </summary>
        public string Name
        {
            get { return _Name; }
            set
            {
                _Name = value;
                OnPropertyChanged("Name");
            }
        }
        public override string ToString()
        {
            //return string.Format("{0}{1}", this.Name, string.IsNullOrWhiteSpace(this.Name) ? "" : " [" + Path.GetFileName(this.FileName) + "]");
            return Path.GetFileName(this.FileName);
        }
    }
}
